package com.logicalthinking.socialmall.service;

import com.github.chenlijia1111.utils.common.Result;
import java.util.List;
import com.logicalthinking.socialmall.entity.ThirdPartyUsers;

/**
 * 第三方登陆用户
 * @author chenLiJia
 * @since 2020-02-18 13:40:25
 **/
public interface ThirdPartyUsersServiceI {

    /**
     * 添加
     *
     * @param params      1
     * @return com.github.chenlijia1111.utils.common.Result
     * @author chenLiJia
     * @since 2020-02-18 13:40:25
     **/
    Result add(ThirdPartyUsers params);

    /**
     * 添加
     *
     * @param params      1
     * @return com.github.chenlijia1111.utils.common.Result
     * @author chenLiJia
     * @since 2020-02-18 13:40:25
     **/
    Result update(ThirdPartyUsers params);

    /**
     * 条件查询
     *
     * @param condition      1
     * @return      * @author chenLiJia
     * @since 2020-02-18 13:40:25
     **/
    List<ThirdPartyUsers> listByCondition(ThirdPartyUsers condition);

    /**
     * 根据用户id删除第三方信息
     * @param userId
     * @return
     */
    Result deleteByUserId(Integer userId);


}
